public class AMD_CPU extends CPU {

    private String name;
    private int coreNum;
    private double price;
    AMD_CPU(String name,int coreNum,double price){
        super(name,coreNum,price);
    }
    @Override
    public void work() {
        System.out.println("AMD CPU is working...");
    }

    public String getName() { return name; }
    public double getcoreNum() { return coreNum; }
    public double getPrice() { return price; }
    public void setName(String name) { this.name = name; }
    public void setPrice(double price) { this.price = price; }
}
